#pragma once

#include "AVWData.h"

#define TIME_LENGTH		32
#define SDUDATA_LENGTH	(LONG_TYPE_SIZE+(3*(AVWDATA_LENGTH)))
#define SDUDATA_FIELDS_COUNT	4
#define TIME_FIELD	0
#define AVWDATA_A_FIELD	1
#define AVWDATA_B_FIELD	2
#define AVWDATA_C_FIELD	3

class SDUData
{
public:
	SDUData(void);
public:
	~SDUData(void);
protected:
	ParseUtil _parseUtil;
public:
	long time;
	AVWData A;
	AVWData B;
	AVWData C;

	char szFrameData[SDUDATA_LENGTH+1];
public:
	void toBinaryDisplay(char* szSDUDataDisplay);
	void getFrameField(int fieldNo, char* szFrameFieldString);
	void setFrame(char* szFrameString);

	void setPropertiesFromFrameData();
};
